package com.gin.kotlin.no_gay_alliance.adapter.user

import android.content.Context
import com.gin.kotlin.no_gay_alliance.base.AbstractBindingRecyclerViewAdapter
import com.gin.kotlin.no_gay_alliance.base.MyHandler
import com.gin.kotlin.no_gay_alliance.databinding.ItemReputationBinding
import com.gin.kotlin.no_gay_alliance.model.UserDetailModel

class ReputationAdapter(context: Context, handler: MyHandler, data: MutableList<UserDetailModel.ReputationModel> = mutableListOf()) :
    AbstractBindingRecyclerViewAdapter<ItemReputationBinding, UserDetailModel.ReputationModel>(context, handler, false, data) {
    override fun onBindViewHolder(holder: ViewHolder<ItemReputationBinding>, position: Int, b: ItemReputationBinding, dataModel: UserDetailModel.ReputationModel) {
        b.tvReputationName.text = dataModel.name
        b.tvReputationValue.text = dataModel.value.toString()
        b.tvReputationRemark.text = dataModel.remark
    }
}